#@adminLayout()
#define main()
<div class="card">
    <header class="content__title">
        <h1>账户管理 / 个人密码修改</h1>
    </header>
    <div class="card-block">
        <form class="form-horizontal clearfix margin-top-30" id="jmisForm" action="/admin/sys/account/saveOrUpdate"
              method="post">
            <div class="row">
                #@cardCol()
                <div class="col-sm-12">
                    <div class="form-group">
                        <div class="col-sm-offset-4 col-sm-8">
                            <button type="submit" class="btn btn-secondary btn--icon-text waves-effect"><i
                                    class="zmdi zmdi-check"></i> 提交
                            </button>
                            <button type="button" id="backList" class="btn btn-secondary btn--icon-text waves-effect"><i
                                    class="zmdi zmdi-arrow-back"></i> 返回列表
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">

    $(document).ready(function () {
        $("#jmisForm").ajaxForm({
            dataType: "json"
            , beforeSubmit: function (formData, jqForm, options) {
            }
            , success: function (ret) {
                if (ret.state == "ok") {
                    showMsg(0, ret.msg);
                    $.pjax({url: "/logout", container: '#pjax-container'});
                } else {
                    showMsg(3, ret.msg)
                }
            }
            , error: function (ret) {
                showMsg(3, ret.statusText)
            }
            , complete: function (ret) {
            }
        });
    });

    $("#backList").click(function () {
        $.pjax({url: "/admin", container: '#pjax-container'});
    })
</script>
#end
#define cardCol()
<input type="hidden" name="account.id" value="#(model.id??)">
<input type="hidden" name="account.userName" value="#(model.userName??)"/>
<input type="hidden" name="account.fullName" value="#(model.fullName??)"/>
<input type="hidden" name="account.mobile" value="#(model.mobile??)"/>
<div class="col-sm-6">

    <div class="form-group">
        <label>新密码</label>
        <input type="password" class="form-control" name="account.password" minlength="6" maxlength="18"
               placeholder="请输入新密码">
        <i class="form-group__bar"></i>
    </div>
</div>
#end
